# coding=utf-8
"""
author: jamon
"""

import signal
from reload_mgr import start_reload


def handler(signalnum, frame):
    print("aaaaaaaaa:", signalnum, frame)


def listen():
    signal.signal(signal.SIGUSR2, start_reload)


if __name__ == "__main__":
    import os
    pid = os.getpid()
    listen()
    os.kill(pid, signal.SIGUSR2)
